'use strict'
// const  mongoose  = require('mongoose')
//
// const ObjectId = mongoose.Schema.ObjectId;


const roomInfo = {
    type: String,
    name: String,
    users: Array, // { id , name }
    notice: String,
    createAt: Date,
    master: Object
};

const messageInfo = {
    speaker: String,
    roomId: String, // 变参
    content: String,
    createAt: Date
};

const friendInfo = {
    user: Object,
    friend: Object,
    intimacy: Number, //亲密度
    lastChatAt: Date, //最后聊天时间
    createAt: Date
};


Object.assign(exports, {roomInfo, messageInfo, friendInfo})
